from django.contrib import admin
from News.models import NewsInformation

# Register your models here.
@admin.register(NewsInformation)
class NewsInformationAdmin(admin.ModelAdmin):
    list_display = ('title', 'category', 'publish_time', 'click')
    list_filter  = ('category', 'publish_time')
    search_fields = ('title',)